<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
  </ol>
  <div>
    
  </div>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="70">类型</th>
        <th width="70">描述</th>
        <th width="70">xpath名字</th>
        <th width="70">xpath值</th>
        <th width="110px">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="regex in productRegexList">
        <th width="80">{{regex.webName|webNameFilter}}{{regex.pageType|pageTypeFilter}}</th>
         <th width="80">{{regex.xpathDesc}}</th>
        <th width="80">{{regex.xpathName}}</th>
        <th width="80">
          <span ng-show="isShowEdit==regex.id">
           <input style="width:600px;" type="text" ng-model="regex.xpathRegex" />
          </span>
          <span ng-show="isShowEdit!=regex.id">
            {{regex.xpathRegex}}
          </span>
        </th>
        <td class="optd">
          <a ng-show="isShowEdit==''||isShowEdit!=regex.id" ng-click="productRegexEdit(regex)" href="javascript:" has-auth where="btn" who="EDIT_PRODUCT_REGEX" >修改内容</a>
           <a ng-show="isShowEdit==regex.id" ng-click="productRegexDoEdit(regex)" href="javascript:" has-auth where="btn" who="EDIT_PRODUCT_REGEX" >保存内容</a>
        </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="productRegexList.length > 0"></div>
</div>
